<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${model.page.title}</title>
<meta name="keywords" content="free website templates, CSS templates, download HTML page, templatemo.com" />
<meta name="description" content="templatemo 004 - free CSS website template" />
<link href="/resources/templatemo_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div id="templatemo_container_wrapper">
		<div class="templatemo_spacer"></div>
		<div id="templatemo_container">
			
			<jsp:include page="public-included/top.jsp" />

			<div id="templatemo_left_column">
				<div class="text_area" align="justify">
					<div class="title">${model.page.title}</div>
					${model.page.content}
					<c:forEach var="post" items="${model.page.posts}">
						<div class="section_box2" align="justify">
							<div class="post_title">${post.title}</div>
							<div class="text_area">
								<img src="/resources/images/s_flashmo_022_park_20.jpg" alt="Photo Two" title="Photo Two" width="120" height="90" class="templatemo_pic" /> ${post.content} <br />
								<div class="publish_date">
									Jakaś data · Tags: <a href="#">Nieprzypisany tag</a> · <a href="#">Nieprzypisany tag</a> · <a href="#">Nieprzypisany tag</a>
								</div>
							</div>
						</div>
					</c:forEach>

				</div>
			</div>
			<div id="templatemo_right_column">
				<ul class="templatemo_menu">
					<c:choose>
						<c:when test="${sessionScope.user == null}">
							<li><a href="/login">Zaloguj się</a></li>
						</c:when>
					</c:choose>
					<c:forEach var="menuPage" items="${model.pages}">
						<li><a href="/show-page?page_id=${menuPage.id}">${menuPage.title}</a></li>
					</c:forEach>
				</ul>
				<c:forEach var="menuEntry" items="${model.menuEntries}">
					<div class="section_box" align="justify">
						<div class="subtitle">${menuEntry.title}</div>
						${menuEntry.content}
					</div>
				</c:forEach>
			</div>
			<jsp:include page="public-included/footer.jsp" />

		</div>
		<div class="templatemo_spacer"></div>
	</div>
</body>
</html>